/** @namespace app.model.Event */
const _ = require('lodash');
module.exports = app => {
    const {JSON} = app.Sequelize;

    const Event = app.model.define('event', {
        value: JSON
    }, {updatedAt: false});

    Event.associate = () => {
        app.model.Event.belongsTo(app.model.User);
    };

    return Event;
};